package com.dhsc.local.dao.impl.xtqxgl;

import com.dhsc.domain.ywzx.xtqxgl.LsqxglVo;
import com.dhsc.local.dao.xtqxgl.ILsqxglDao;
import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @ClassName: LsqxglDaoImpl
 * @Description: 临时权限管理
 * @date: 2023/11/23 11:28
 * @author: gx
 */
@Repository("lsqxgldao")
public class LsqxglDaoImpl implements ILsqxglDao {

    @Autowired
    private SqlSessionTemplate localSqlSessionTemplate;

    @Override
    public List<LsqxglVo> queryLsqxgl(LsqxglVo lsqxglVo) {
        return localSqlSessionTemplate.selectList("LsqxglMapper.queryLsqxgl", lsqxglVo);
    }

    @Override
    public int insertLsqxgl(LsqxglVo lsqxglVo) {
        return localSqlSessionTemplate.insert("LsqxglMapper.insertLsqxgl", lsqxglVo);
    }

    @Override
    public int deleteLsqxgl(LsqxglVo lsqxglVo) {
        return localSqlSessionTemplate.delete("LsqxglMapper.deleteLsqxgl", lsqxglVo);
    }

    @Override
    public List<LsqxglVo> queryYhmc(LsqxglVo lsqxglVo) {
        return localSqlSessionTemplate.selectList("LsqxglMapper.queryYhmc", lsqxglVo);
    }

    @Override
    public List<LsqxglVo> queryJsxz(LsqxglVo lsqxglVo) {
        return localSqlSessionTemplate.selectList("LsqxglMapper.queryJsxz", lsqxglVo);
    }


}
